package cn.tj212.xiaoyin.core.user.dao;

import cn.tj212.xiaoyin.common.page.TailPage;
import cn.tj212.xiaoyin.core.user.domain.UserCourseSection;
import cn.tj212.xiaoyin.core.user.domain.UserCourseSectionDto;

import java.util.List;

public interface UserCourseSectionDao {
    UserCourseSection getById(Long id);

    List<UserCourseSection> queryAll(UserCourseSection queryEntity);

    UserCourseSection queryLatest(UserCourseSection queryEntity);

    Integer getTotalItemsCount(UserCourseSection queryEntity);

    List<UserCourseSectionDto> queryPage(UserCourseSection queryEntity, TailPage<UserCourseSectionDto> page);

    void createSelectivity(UserCourseSection entity);

    void update(UserCourseSection entity);

    void updateSelectivity(UserCourseSection entity);

    void delete(UserCourseSection entity);

    void deleteLogic(UserCourseSection entity);
}
